package com.rxh.trade;

import com.rxh.pojo.cross.BankResult;
import com.rxh.pojo.payment.Trade;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface BaseMethod<T> {

    // 处理Payment交易接口
    BankResult trade(Trade trade) throws Exception;

    // 处理通道交易异步通知接口
    String tradeNotify(HttpServletRequest req) throws Exception;

    // 处理Payment退款接口
    BankResult refund(Trade trade) throws IOException;

    // 处理通道退款异步通知接口
    String refundNotify(HttpServletRequest req);

}
